package com.example.case03_16110100424;

import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class SettingActivity extends AppCompatActivity {
    private TextView tv_username;
    private SharedPreferences sp;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);
       tv_username=findViewById(R.id.tv_s_username);
        sp=getSharedPreferences("case03_sp",MODE_PRIVATE);
        tv_username.setText(sp.getString("usernae","null"));




    }
}
